package com.vastcom.sigma.admin.dao;

import com.vastcom.sigma.admin.model.Materiainventory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface MateriainventoryDao extends JpaRepository<Materiainventory,String> {

    @Query("select m from Materiainventory m where m.pm=:pm")
    List<Materiainventory> getMateriainventoriesByPm(@Param("pm") String pm);

}
